<?php

class Materials_Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

	protected $_moduleName = 'materials';

	protected function _initDefaultStorage() {

		Workset_Model_Object_Abstract::setDefaultStorage(Materials_Model_Material::TYPE, 'Materials_Model_Material_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Materials_Model_Category::TYPE, 'Materials_Model_Category_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Materials_Model_Comment::TYPE, 'Materials_Model_Comment_Storage_Table');
		Workset_Model_Object_Abstract::setDefaultStorage(Materials_Model_Label::TYPE, 'Materials_Model_Label_Storage_Table');

	}

	protected function _initController() {

		// Задаём путь к помошникам действий модуля
		$path = Zend_Controller_Front::getInstance()->getModuleDirectory($this->_moduleName);
		Zend_Controller_Action_HelperBroker::addPath($path.'/helpers', 'Materials_Helper');

	}

}
